<?php
	session_start();
	
	$con = mysqli_connect("localhost","root","","movie");
	if(!$con)
		die("Could not connect" . mysql_error());

	$sql = "INSERT INTO crew (name,dateOfBirth)
					   VALUES ('$_POST[name]','$_POST[dateOfBirth]')";
    
    if(mysqli_query($con,$sql)) {
       	echo "success";
    }
    else echo "error";
    
?>